# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-proxmoxer
pkgver=1.3.1
pkgrel=0
pkgdesc="Python wrapper for Proxmox API v2"
url="https://github.com/proxmoxer/proxmoxer"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="
	py3-mock
	py3-nose
	py3-openssh-wrapper
	py3-paramiko
	py3-requests-toolbelt
	py3-testfixtures
	"
source="https://github.com/proxmoxer/proxmoxer/archive/$pkgver/proxmoxer-$pkgver.tar.gz"
builddir="$srcdir/proxmoxer-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# current https tests require an ancient version of py3-requests
	nosetests -e "https_tests"
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
c2fe9fcf3f17e4c181fcc040878f08b6c4d64b0b048ed6a03990fd23a2dbde5bd6c2d63e62f0d38d76b93eb5f588bb2fc2bd2eeba4643bf3c1c9b043660009a5  proxmoxer-1.3.1.tar.gz
"
